﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

namespace PlanetenGravity
{
    public class Planet : Sprite
    {
        public float GravityField;
        public float GravityStrength;

        public Planet(
            Texture2D texture,
            float mass,
            Vector2 position,
            Vector2 speed,
            float gravityField,
            float gravityStrength)
        {
            OnCollision += new CollisionEvent(CollisionResponse);
            Texture = texture;
            Radius = Texture.Width / 2;
            Mass = mass;
            Origin = new Vector2(Radius, Texture.Height / 2);
            Position = position;
            Speed = speed;
            GravityField = gravityField;
            GravityStrength = gravityStrength;
        }

        public void CollisionResponse(object sender, EventArgs e)
        {
            
        }
    }
}